<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>成绩列表</title>
</head>
<body>
    
 
    <table border="1">
        <tr>
            <th>id</th>
            <th>学生姓名</th>
            <th>科目</th>
            <th>成绩</th>
            <th>任课教师</th>
        </tr>
        <c:forEach items="${scores}" var="score">
            <tr>
                <td>${score.id}</td>
                <td>${score.student.name}</td>
                <td>${score.subject.name }</td>
                <td>${score.fraction}</td>
                <td>${score.teacher.name}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>